
angular.module('statequery.route', ['statequery.controller','ionic-datepicker'])
  .config(function ($stateProvider, $urlRouterProvider,ionicDatePickerProvider) {

    $stateProvider

      .state('tab.statequery', {
        url: '/statequery',
        views: {
          'tab-home': {
            templateUrl: 'areas/statequery/statequery.html',
            controller: 'StatequeryCtrl'
          }
        }
      })

      //配置时间日期
      var datePickerObj = {
        inputDate: new Date(),
        setLabel: '确定',
        todayLabel: '今天',
        closeLabel: '关闭',
        mondayFirst: false,
        weeksList: ["日", "一", "二", "三", "四", "五", "六"],
        monthsList: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
        templateType: 'popup',
        from: new Date(),
        to: new Date(),
        showTodayButton: true,
        dateFormat: 'dd MMMM yyyy',
        closeOnSelect: false,
        disableWeekdays: [""],

      };
      ionicDatePickerProvider.configDatePicker(datePickerObj);
  });
